﻿using System.Web.Mvc;

namespace ScrumTrackerAjax.Areas.API
{
    public class APIAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "API";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "API_list",
                "API/{controller}",
                new { action = "List" }
            );

            context.MapRoute(
                "API_resource",
                "API/{controller}/{id}/{action}",
                new { action = "Resource" }
            );
        }
    }
}
